#!/bin/sh
if [ "${FUNSHELL_CHECK}" != "1" ];then
    export FUNSHELL_CHECK=1
    export FUNCSHELL_PATH=/usr/local/funcshell
    export LOGDIR=${FUNCSHELL_PATH}/log
    export ALOG=${LOGDIR}/alog.log
    export PATH=${PATH}:${FUNCSHELL_PATH}
    export CURR_SCRIPT=${0}
	export PIDS=$$

function import(){

	local modfile=${*}

	for i in ${modfile}
	do
		local url=${FUNCSHELL_PATH}/mod/${i}.mod

		if [ -f "${url}" ];then
			source ${url}
		else
			echo "error: mod [${url}] file not exist" >&2
		fi		
	done
}

fi
